XyzDataSeries

StockSharp.Xaml.Charting.Model.DataSeries

提供一个通用的 X,Y,Z 值。如果此 X,Y 值被指定给其它 X,Y 类型, X,Y 值将被调出( Z 忽略) 。

继承自: DataSeries<T, T>

实现: IXyzDataSeries<T, T, T>, IDataSeries<T, T>, IDataSeries, ISuspendable, IXyzDataSeries

构造函数

XyzDataSeries
public XyzDataSeries()
xyzDataSeries = XyzDataSeries()

初始化了 & ##XyzDataSeries+# 类的新实例 。

属性

DataSeriesType
public override DataSeriesType DataSeriesType { get; }
value = xyzDataSeries.DataSeriesType

获得此 & # # # #DataSeriesType # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

HasValues
public override bool HasValues { get; }
value = xyzDataSeries.HasValues

获取数据序列是否有值( 不是空的)

ZValues
public IList<TZ> ZValues { get; }
value = xyzDataSeries.ZValues

获取 Z 值

方法

Append
public void Append(IEnumerable<TX> x, IEnumerable<TY> y, IEnumerable<TZ> z)
xyzDataSeries.Append(x, y, z)

附加 X 、 Y0 和 Y1 的相集到序列中, 自动触发重画

x
X 值
y
Y 值( Y)
z
Z值( T)
Append
public void Append(TX x, TY y, TZ z)
xyzDataSeries.Append(x, y, z)

将单 X, Y0, Y1 点到序列中, 自动触发重画

x
X 值
y
Y 值( Y)
z
Z值( T)
Append
public override void Append(IEnumerable<TX> x, IEnumerable<TY>[] yValues)
xyzDataSeries.Append(x, yValues)

附加 X 列表, Y 指向序列

x
X 点列表
yValues
Y分列表( 取决于系列类型)
Append
public override void Append(TX x, TY[] yValues)
xyzDataSeries.Append(x, yValues)

附加一个 X, Y 指向序列

x
X 值
yValues
Y 值( 取决于系列类型)
ClearColumns
protected override void ClearColumns()
xyzDataSeries.ClearColumns()

当在某一类中被覆盖时, 清除数据序列中的所有列

Clone
public override IDataSeries<TX, TY> Clone()
result = xyzDataSeries.Clone()

Creates a deep copy of a DataSeries

GetYMaxAt
public override TY GetYMaxAt(int index, TY existingYMax)
result = xyzDataSeries.GetYMaxAt(index, existingYMax)

当在衍生类中被覆盖时,获得最大值(existingYMax,currentMax),其中currentMax是指定索引中的最大值

index
基础数据集的索引
existingYMax
现有上限

返回值: 新的YMax,即Min(existingYMax,currentMax).

GetYMinAt
public override TY GetYMinAt(int index, TY existingYMin)
result = xyzDataSeries.GetYMinAt(index, existingYMin)

当在衍生类中被覆盖时, 可获得 Min(%% existingYMin+%,% currentMin+%), 其中的% currentMin+%% 是指定索引中最小的

index
基础数据集的索引
existingYMin
现有最低限额

返回值: 新的YMIN,即Min(existingYMin,currentMin)), 即:

Insert
public void Insert(int index, TX x, TY y, TZ z)
xyzDataSeries.Insert(index, x, y, z)

在指定的索引上插入 X, Y0, Y1 点。 自动触发重画

index
插入的索引
x
X 值
y
Y 值( Y)
z
Z值( T)
InsertRange
public void InsertRange(int startIndex, IEnumerable<TX> x, IEnumerable<TY> y, IEnumerable<TZ> z)
xyzDataSeries.InsertRange(startIndex, x, y, z)

在指定的索引上插入 X 、 Y0 和 Y1 分的集合, 自动触发重画

startIndex
插入的索引
x
X 值
y
Y 值( Y)
z
Z值( T)
RemoveAt
public override void RemoveAt(int index)
xyzDataSeries.RemoveAt(index)

删除指定索引中的 X, Y 值

index
要删除的索引 :
RemoveRange
public override void RemoveRange(int startIndex, int count)
xyzDataSeries.RemoveRange(startIndex, count)

删除从指定的索引开始的点范围

startIndex
开始删除元素范围的索引
count
要删除的元素数量
ToHitTestInfo
public override HitTestInfo ToHitTestInfo(int index)
result = xyzDataSeries.ToHitTestInfo(index)

当在衍生类中被覆盖时, 返回包含指定索引数据点的 HitTestInfo 结构

index
The index to the DataSeries

返回值: HitTestInfo

ToPointSeries
public override IPointSeries ToPointSeries(ResamplingMode resamplingMode, IndexRange pointRange, int viewportWidth, bool isCategoryAxis, bool? dataIsDisplayedAs2D, IRange visibleXRange, IPointResamplerFactory factory, object pointSeriesArg)
result = xyzDataSeries.ToPointSeries(resamplingMode, pointRange, viewportWidth, isCategoryAxis, dataIsDisplayedAs2D, visibleXRange, factory, pointSeriesArg)

将默认的 YValues 转换为用于渲染 XY 序列的 IPointSeries

resamplingMode
The desired ResamplingMode
pointRange
父数据集中的整数索引范围
viewportWidth
视图的当前宽度
isCategoryAxis
如果真实, 使用索引来组成被重印的 X 值, 否则使用 X 值本身
dataIsDisplayedAs2D
如果数据是真实的, 那么数据会被显示为散射序列, 而不在点之间发生关系, e.g 。 而不是行序列 。
visibleXRange
重作取样时的轴 VisibleRange
factory
The IPointResamplerFactory Instance
pointSeriesArg
点序列的附加参数.

返回值: 用于制取 XY 系列的 IPointSeries 相机

Update
public void Update(TX x, TY y, TZ z, int shift)
xyzDataSeries.Update(x, y, z, shift)

更新( 覆盖) 指定的 X 值的 Y0, Y1 值。 自动触发重画

x
X 值
y
Y 值( Y)
z
Z值( T)
shift